package com.china08.yxyapi.entity.db.yxy;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 知识点
 * 
 * @author liuhuifang
 *
 */
@Entity
@Table(name = "yxy_yxy_ques_know", catalog = "yxy_yxy")
public class YxyQuesKnow implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @Column(length = 32)
    private Integer id;

    /** 父节点Id */
    @JsonProperty(value = "pId")
    @Column(name = "parent_id", nullable = false)
    private Integer parentId;

    /** 知识点所属类型：(1:章2:节 9:内容) */
    @Column(name = "type", nullable = false)
    private String type;

    /** 学段 */
    @Column(name = "stage", nullable = false)
    private String stage;

    /** 学科 */
    @Column(name = "subject", nullable = false)
    private String subject;

    /** 编码 */
    @Column(name = "code", nullable = false)
    private String code;

    /** 知识点名称 */
    @Column(name = "name", nullable = false)
    private String name;

    /** 所属等级全路径 */
    @Column(name = "full_path", nullable = false)
    private String fullPath;

    /** 删除标志 0:已删除，1：未删除 */
    @Column(name = "delete_flag", nullable = false, columnDefinition = "COMMENT '0:删除，1：未删除'")
    private String deleteFlag;

    /** 慧学标记:0:不显示,1:显示 */
    @Column(name = "huixue_flag", columnDefinition = "tinyint(1) DEFAULT 1 COMMENT '慧学标记:0:不显示,1:显示'", nullable = false)
    private Boolean huixueFlag = Boolean.TRUE;

    /** 是否需要更新哈尔滨 和 更新试题，微课 */
    @Column(name = "is_update", nullable = false)
    private Integer isUpdate = 0;

    /** 排序字段 */
    @Column(name = "order_num", nullable = false)
    private Integer orderNum;

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStage() {
        return stage;
    }

    public void setStage(String stage) {
        this.stage = stage;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFullPath() {
        return fullPath;
    }

    public void setFullPath(String fullPath) {
        this.fullPath = fullPath;
    }

    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Boolean getHuixueFlag() {
        return huixueFlag;
    }

    public void setHuixueFlag(Boolean huixueFlag) {
        this.huixueFlag = huixueFlag;
    }

    public Integer getIsUpdate() {
        return isUpdate;
    }

    public void setIsUpdate(Integer isUpdate) {
        this.isUpdate = isUpdate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

}
